home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- from checkbox.lib.cache import cache
- from checkbox.lib.conversion import string_to_type
- from checkbox.properties import Path
- from checkbox.registries.filename import FilenameRegistry
- from checkbox.registries.map import MapRegistry
-
- class MountsRegistry(FilenameRegistry):
- '''Registry for mounts information.
-
- Each item contained in this registry consists information about
- the mount point.
- '''
- filename = Path(default = '/proc/mounts')
-
- def items(self):
- keys = [
- 'file_system',
- 'mount_point',
- 'type',
- 'options',
- 'dump',
- 'pass']
- items = []
- for l in self.split('\n'):
- if l:
- continue
- _[1][l]
-
- return items
-
- items = cache(items)
-
- factory = MountsRegistry
-